package com.device.operating.service;

import java.util.List;
import java.util.Map;

import com.device.operating.entity.User;

public interface UserService {

	public void addUser(User user);
	
	public User login(String email,String password);
	
	public User queryUser(String userId);
	
	public void deleteuser(String userId);
	
	public List<User> querybyusercode(String usercode);
	
	public List<User> querybyname(String username);
	/**
	 * 查找当前部门，所有的USER，如果flag=false,则查询全部结果，若未true,则查询分页结果
	 * @param departmentId
	 * @param fr
	 * @param mr
	 * @param flag
	 * @return
	 */
	public Map queryalluserbydepartmentId(String departmentId,int fr, int mr,boolean flag);
	
	public List<User> querybydepartmentId(String dpId);
	
	public List<User> queryByRootdpId(String rootdpId);
	
}
